//
//  BonusPrototypeParser.h
//  airfight
//
//  Created by aaron on 12-11-22.
//  Copyright (c) 2012年 moonriver. All rights reserved.
//

#ifndef airfight_BonusPrototypeParser_h
#define airfight_BonusPrototypeParser_h

#include "cocos2d.h"
#include "BaseXMLParser.h"
#include "Bonusprototypes.h"

USING_NS_CC;

class BonusPrototypeParser : public BaseXMLParser
{
private:
    std::string startXMLElement;
    std::string endXMLElement;
    std::string currentString;
    Bonus *currentBonus;
    
public:
    BonusPrototypes* prototypes;
    
public:
    BonusPrototypeParser();
    virtual ~BonusPrototypeParser();
    static BonusPrototypeParser * formatWithXMLFile(const char *xmlFile);
    virtual void internalInit(const char* tmxFileName);
    
    virtual void startElement(void *ctx, const char *name, const char **atts);
    virtual void endElement(void *ctx, const char *name);
    virtual void textHandler(void *ctx, const char *s, int len);
    
};


#endif
